import requests


def get_token_allegro(OrderSourceId):
    url = f"https://888.zhcxkj.com/Api/Index.ashx?Method=GetAllegroToken&customerId=1&OrderSourceId={OrderSourceId}"
    res = requests.get(url)
    return res.json().get('Token')